import request from '@/utils/request'

export function paginate(form, page, page_size) {
  return request({
    url: '/api/sys/perm/paginate',
    method: 'post',
    data: {
      page_num: page,
      page_size: page_size,
      perm_name: form.perm_name,
      controller_name: form.controller_name
    }
  })
}

export function tidy() {
  return request({
    url: '/api/sys/perm/tidy',
    method: 'post',
    data: {}
  })
}
